package com.alan.api.service;

import com.alan.api.core.APIMapping;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.io.Serializable;

/**
 * @author Alan
 * @create 2018-01-10 22:03
 * @desc test
 **/
@Service
public class GoodsServiceImpl {

    @APIMapping(value = "alan.api.goods.add",isCheck = true)
    public Goods addGoods(Goods goods,Integer id){
        return goods;
    }

    public static class Goods implements Serializable {
        private String goodsName;
        private String goodsId;

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public String getGoodsId() {
            return goodsId;
        }

        public void setGoodsId(String goodsId) {
            this.goodsId = goodsId;
        }
    }

}
